package mapper.account;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import pojo.account.Manager;

public interface ManagerMapper {
    @Insert("INSERT INTO manager(id,password,name) VALUES (#{id},#{password},#{name})")
    boolean insert(Manager manager) throws Exception;

    @Select("SELECT * FROM manager WHERE id=#{id}")
    Manager query(@Param("id") String id);

    @Update("UPDATE manager SET id=#{id},password=#{password},name=#{name} WHERE id=#{id}")
    boolean update(Manager manager);
}
